/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.infoweblogic.pojos;

import br.com.pbs.interfaces.Bean;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToOne;

/**
 *
 * @author Luiz Segundo
 */
@Entity
public class TurmaDisciplina implements Bean{
        @Id
        @GeneratedValue(strategy=GenerationType.AUTO)
        private Long id;

        @Column
        private String ano;
        @OneToOne
        private Turma turma;
        @OneToOne
        private Disciplina disciplina;

        @Column
        private double cargaHoraria = 0;

        public double getCargaHoraria() {
                return cargaHoraria;
        }

        public void setCargaHoraria(double cargaHoraria) {
                this.cargaHoraria = cargaHoraria;
        }

        public Long getId() {
                return id;
        }

        public void setId(Long id) {
                this.id = id;
        }

        public String getAno() {
                return ano;
        }

        public void setAno(String ano) {
                this.ano = ano;
        }

        public Disciplina getDisciplina() {
                return disciplina;
        }

        public void setDisciplina(Disciplina disciplina) {
                this.disciplina = disciplina;
        }

        public Turma getTurma() {
                return turma;
        }

        public void setTurma(Turma turma) {
                this.turma = turma;
        }
}
